//
//  GatherIndicatorCell.m
//  YYTextTest
//
//  Created by macintosh on 16/9/12.
//  Copyright © 2016年 macintosh. All rights reserved.
//

#import "GatherIndicatorCell.h"

@implementation GatherIndicatorCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:reuseIdentifier]) {
        self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }
    
    return self;
}

- (void)setInfo:(GatherIndicatorInfo *)info
{
    _info = info;
    
    self.textLabel.text = _info.title;
    self.detailTextLabel.text = _info.detailTitle;
}

- (void)setIsOpened:(BOOL)isOpened
{
    _info.isOpened = isOpened;
}

@end
